<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>会员认证</title>
		<link rel="stylesheet" href="__AGENT__/css/css.css" />
		<script type="text/javascript" src="__PUBLIC__/static/js/jquery.min.js"></script>
		<link rel="stylesheet" href="__PUBLIC__/static/layui/css/layui.css">
		<script src="__PUBLIC__/static/layui/layui.js"></script>
	</head>
	<body style="margin-top: 20px;">
		<form id="my_form"  class="layui-form update_form" action="" method="post">
			<input type="hidden" name="id" value="{$verif_info['id']}">
			<div class="layui-form-item">
				<label class="layui-form-label" style="width:25%">审核不通过原因</label>
			</div>
			<div class="layui-form-item">
				<div class="layui-input-block update_shurk">
					<textarea  name="not_pass_msg" style="width: 400px; height: 250px;"  placeholder="输入不通过原因" ></textarea>
				</div>
			</div>
			<div class="layui-form-item update_btnbox" style="text-align: center;margin-left:unset">
				<div class="layui-input-block" style="max-width: unset;float: unset;">
					<button  id='change_but' class="layui-btn" lay-submit lay-filter="demo1">立即提交</button>
					<button type="reset" class="layui-btn layui-btn-primary">重置</button>
				</div>
			</div>
		</form>
	</body>
</html>
<script>
function set_content(){
	 $.ajax({
         	type:"post",
            url:"{:url('member_verif_pass')}",
            data: $('#my_form').serialize(),
            success:function(data){
                if(data.code==200){
                	layer.msg(data.msg, {
					  icon: 1,
					  time: 1500 
					}, function(){
						parent.location.href = "{:url('finance/member_verif')}";
					});
                }else{
                	layer.msg(data.msg);
                }
            }
    });
	
}
//图片上传
layui.use(['form'], function(){
	var $ = layui.jquery,form = layui.form;
  	//监听提交
	form.on('submit(demo1)', function(data){
		$('#change_but').addClass("layui-btn-disabled");
		set_content();
		return false;
	});
})
</script>
